<?
	include('header.php');
?>
<div id="content">
	
	<div id="blog">
			
<?
		$the_posts = drizzo_get_the_posts(10, 0, "publish", "blog"); // Start the Loop
		foreach($the_posts as $the_post) {
?>
			<div class="post">
				<h2><a href="<? echo drizzo_post_permalink(); ?>"><? echo drizzo_post_title(); ?></a><? if(drizzo_user_has_avatar()) { ?><img src="<? echo admin_folder . "engine/user_avatar.php?user_id=" . $the_post['author']; ?>" alt="<? echo drizzo_post_author("nice_name"); ?>" class="post_avatar" /><? } ?></h2>
				<p class="post_meta">By <? echo drizzo_post_author("nice_name"); ?> on <? echo drizzo_post_date(drizzo_global_options('date_format') . ' \a\t ' . drizzo_global_options('time_format'))?></p>
				<div class="post_content"><? echo drizzo_post_content(); ?></div>
				<p class="post_meta"><span class="tags_meta"><strong>Tags:</strong> <? echo drizzo_post_tags(); ?></span> | <span class="comments_meta"><strong><a href="<? echo drizzo_post_permalink(); ?>#comments" title="View Comments">Comments:</strong> <? if(drizzo_comment_count()) { echo drizzo_comment_count(); } else { echo "0"; } ?></a></span><? echo drizzo_edit_link(" | ", ""); ?></p>
			</div>
<?
		}
?>

		</div>
		
	</div>
	
	<hr />

<?
	include('sidebar.php');
	include('footer.php');
?>
